package com.fiberhome.ztelauncher.util;

import android.graphics.Typeface;

/**
 * Created by xc on 2018/3/28.
 * 描述：
 */

public class TextStyleUtil {

    /**
     * 获取字体样式
     * @param fontStyle
     * @return
     */
    public static Typeface getTextStyle(String fontStyle){
        if("normal".equals(fontStyle)){
            return Typeface.DEFAULT;
        }else if("sans".equals(fontStyle)){
            return Typeface.SANS_SERIF;
        }if("serif".equals(fontStyle)){
            return Typeface.SERIF;
        }if("monospace".equals(fontStyle)){
            return Typeface.MONOSPACE;
        }
        return Typeface.DEFAULT;
    }
}
